﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MPMS.DTOModel
{
    


    public class OperateResult
    {
        /// <summary>
        /// 结果状态
        /// </summary>
        public ResultStatus State { get; set; }
        /// <summary>
        /// 消息提示
        /// </summary>
        public string Message { get; set; }

        public object Data { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="resultStatus"></param>
        /// <param name="msg"></param>
        public OperateResult(ResultStatus state, string msg)
        {
            this.State = state;
            this.Message = msg;
        }
        public OperateResult(ResultStatus state, string msg,object data)
        {
            this.State = state;
            this.Message = msg;
            this.Data = data;
        }

        public enum ResultStatus
        {
            Error = -1,
            Success = 1
        }
    }
}
